package com.njupt.user.model;/*
 @author
 @DESCRIPTION ${DESCRIPTION}
 @create 2019/4/16
*/

public class User {
    private  int userid;        //学号

    private  String username;   //用户名

    private  String password;   //密码

    private  long tel;          //联系方式

    private  String  usertype ; //用户类型   0-代表用户  1-代表老师

    private String sex;         //性别

    private int age;            //年龄

    public int getUserid(){
        return userid;
    }

    public void setUserid(int userid){
        this.userid = userid;
    }

    public String getUsername(){
        return username;
    }

    public void setUsername(String username){
        this.username = username;
    }

    public String getPassword(){
        return password;
    }

    public void setPassword(String password){
        this.password = password;
    }

    public long getTel(){
        return tel;
    }

    public void setTel(long tel){
        this.tel = tel;
    }

    public String getUsertype(){
        return usertype;
    }

    public void setUsertype(String usertype){
        this.usertype = usertype;
    }

    public String getSex(){
        return sex;
    }

    public void setSex(String sex){
        this.sex = sex;
    }

    public int getAge(){
        return age;
    }

    public void setAge(int age){
        this.age = age;
    }

    public User(){

    }

    public User(int userid, String username, String password, long tel, String usertype, String sex, int age){
        this.userid = userid;
        this.username = username;
        this.password = password;
        this.tel = tel;
        this.usertype = usertype;
        this.sex = sex;
        this.age = age;
    }

    @Override
    public String toString(){
        return "User{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", tel=" + tel +
                ", usertype='" + usertype + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
